package com.yc.ioc.test.bean4;

import com.yc.ioc.test.bean4.other.Banana;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App3_import {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig_3.class);
        Banana banana = ac.getBean("banana", Banana.class);
        System.out.println(banana);
    }
}
